﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LevelEditor
{
    public partial class AnimationInfo : Form
    {
        public EditorForm form1;
        public AnimationInfo(EditorForm form1)
        {
            InitializeComponent();
            this.form1 = form1;
        }

        public void submitButton_Click(object sender, EventArgs e)
        {
            form1.tempListString.Add(xOffsetBox.Text);
            form1.tempListString.Add(yOffsetBox.Text);
            form1.tempListString.Add(widthBox.Text);
            form1.tempListString.Add(heightBox.Text);
            form1.tempListString.Add(intervalBox.Text);
            form1.tempListString.Add(frameBox.Text);
            this.Close();
        }

    }
}
